home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
TPUG - Toronto PET Users Group
/
TPUG Users Group CD
/
TPUG Users Group CD.iso
/
AMIGA
/
AMICUS
/
AMICUS18.ADF
/
Logo
/
logo.4
< prev
next >
Wrap
Text File
|
1989-01-27
|
546b
|
26 lines
;
;You don't always need real numbers to get a circle.
;Ratios are sometimes just as good.
;
to forcircle :fd :lt
rp 360/:lt [fd :fd lt :lt]
end
to demo
cs pd rt 90
rp 4 [forcircle 1 1 lt 90]
rp 4 [forcircle 1 2 lt 90]
rp 4 [forcircle 1 3 lt 90]
rp 4 [forcircle 1 4 lt 90]
rp 4 [forcircle 2 3 lt 90]
rp 4 [forcircle 1 6 lt 90]
end
;
;How do I do it without reals? I maintain the X and Y locations
;in 32 bits, but with a fixed point decimal point at bit 15. This
;gives me accuracy to 1 part in 10000.
;